﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="MemberMgr.Website.Login" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>会员管理系统</title>
</head>
<body>
    <form id="form1" runat="server">
    <h1 style="font-family: 微软雅黑">
        <span style="font-size: 80; color: Red; font-stretch: ultra-expanded; font-style: italic">
            乘 风 </span>
    </h1>
    <h3 style="font-family: 微软雅黑">
        会员管理系统</h3>
    <ext:ResourceManager runat="server" Locale="zh-CN" />
    <ext:Window ID="WinLogin" runat="server" Closable="false" Resizable="false" AutoHeight="true"
        Icon="Lock" Title="系统登录" Draggable="false" Width="350" Modal="true" Padding="5"
        Layout="Form">
        <Items>
            <ext:FormPanel ID="fpLogin" runat="server" Frame="true">
                <Items>
                    <ext:ComboBox ID="cmbShop" FieldLabel="商店名称" runat="server" AllowBlank="false" BlankText="请选择登录商店..."
                        ValidationGroup="login" Editable="false" Mode="Local" ForceSelection="true" ValidateOnEvent="true">
                    </ext:ComboBox>
                    <ext:TextField ID="txtUsername" runat="server" FieldLabel="用户名" AllowBlank="false"
                        AutoFocus="true" BlankText="登录用户名不能为空." Text="test" ValidationGroup="login" />
                    <ext:TextField ID="txtPassword" runat="server" InputType="Password" FieldLabel="密码"
                        AutoFocus="true" AllowBlank="false" BlankText="登录密码不能为空." Text="123" ValidationGroup="login" />
                </Items>
                <Buttons>
                    <ext:Button ID="btnLogin" runat="server" Text="登录" Icon="Accept" ValidationGroup="login">
                        <DirectEvents>
                            <Click OnEvent="btnLogin_Click" DisableCaching="true" Before="return #{fpLogin}.getForm().isValid();">
                                <EventMask ShowMask="true" Msg="正在登录请稍后..." />
                            </Click>
                        </DirectEvents>
                    </ext:Button>
                </Buttons>
            </ext:FormPanel>
        </Items>
    </ext:Window>
    </form>
</body>
</html>
